package com.yao.springredisdemo.service;

import com.yao.springredisdemo.entity.Student;

/**
 * @author yao
 */
public interface StudentService {
    /**
     * 插入一个对象
     * @param student
     */
    Student insertStudent(Student student);

    /**
     * 删除一个对象
     * @param id
     */
    void deleteStudentById(Long id);

    /**
     * 查找一个对象
     * @param id
     * @return
     */
    Student selectStudentById(Long id);
}
